import Mock from 'mockjs'

const baseURL = '/api'

export default function (url, temp) {
  return Mock.mock(baseURL + url, {
    ok: true,
    code: 200,
    data: temp
  })
}
